package com.zhouyu.exampledesignmoudle.decorator;

/**
 * @Description:装饰者角色,持有抽象构件的实例，实现和抽象实例一样的方法
 */
public class Changer implements TheGreatestSage {

    TheGreatestSage theGreatestSage;

    Changer(TheGreatestSage theGreatestSage) {
        this.theGreatestSage = theGreatestSage;
    }

    @Override
    public void display() {
        theGreatestSage.display();
    }
}
